package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the treasury database table.
 * 
 */
@Entity
@NamedQuery(name="Treasury.findAll", query="SELECT t FROM Treasury t")
public class Treasury implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String tnum;

	private String cdesc;

	private int oid;

	private int ownum;

	private String taddress;

	@Temporal(TemporalType.DATE)
	private Date tdate;

	private int tquantity;

	private String ttitle;

	private int ttype;

	private int ywnum;

	//bi-directional many-to-one association to Depotgood
	@ManyToOne
	@JoinColumn(name="dnum")
	private Depotgood depotgood;

	public Treasury() {
	}

	public String getTnum() {
		return this.tnum;
	}

	public void setTnum(String tnum) {
		this.tnum = tnum;
	}

	public String getCdesc() {
		return this.cdesc;
	}

	public void setCdesc(String cdesc) {
		this.cdesc = cdesc;
	}

	public int getOid() {
		return this.oid;
	}

	public void setOid(int oid) {
		this.oid = oid;
	}

	public int getOwnum() {
		return this.ownum;
	}

	public void setOwnum(int ownum) {
		this.ownum = ownum;
	}

	public String getTaddress() {
		return this.taddress;
	}

	public void setTaddress(String taddress) {
		this.taddress = taddress;
	}

	public Date getTdate() {
		return this.tdate;
	}

	public void setTdate(Date tdate) {
		this.tdate = tdate;
	}

	public int getTquantity() {
		return this.tquantity;
	}

	public void setTquantity(int tquantity) {
		this.tquantity = tquantity;
	}

	public String getTtitle() {
		return this.ttitle;
	}

	public void setTtitle(String ttitle) {
		this.ttitle = ttitle;
	}

	public int getTtype() {
		return this.ttype;
	}

	public void setTtype(int ttype) {
		this.ttype = ttype;
	}

	public int getYwnum() {
		return this.ywnum;
	}

	public void setYwnum(int ywnum) {
		this.ywnum = ywnum;
	}

	public Depotgood getDepotgood() {
		return this.depotgood;
	}

	public void setDepotgood(Depotgood depotgood) {
		this.depotgood = depotgood;
	}

}